package cn.lzx.sentine;

import cn.lzx.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandlerClass {

    public static User getUserById(@PathVariable("id") Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"降级了","服务器繁忙");
    }
}
